package com.hq.zb.service;

import com.hq.zb.dto.Attachment;
import com.baomidou.mybatisplus.service.IService;
import org.springframework.web.multipart.MultipartFile;

/**
 * <p>
 * 附件表 服务类
 * </p>
 *
 * @author huanghanrui
 * @since 2022-03-27
 */
public interface IAttachmentService extends IService<Attachment> {

    /**
     * 上传附件
     * @param file
     * @param fileName
     * @return
     */
    String upload(MultipartFile file, String fileName, Attachment attachment);

    /**
     * 删除附件
     * @param attachment
     */
    void deleteAttachment(Attachment attachment);
}
